package com.atguigu.spring5.bean1.testDemo;

import com.atguigu.spring5.bean1.autowire.Emp;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAutowire {

    @Test
    public void testAutowire(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean8.xml");
        Emp emp = context.getBean("emp", Emp.class);
        System.out.println(emp);
    }


}
